﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VERKProjectHopur16.Models.RegisterModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Lang.GetText("Menu", "Register") %>
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: Lang.GetText("Menu", "Create_a_New_Account") %></h2>
    <p>
        <%: Lang.GetText("Menu", "Create_a_New_Account_Long") %>
    </p>
    <p>
        <!-- Passwords are required to be a minimum of <%: ViewData["PasswordLength"] %> characters in length.-->
    </p>

    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
        <div>
            <fieldset>
                <legend><%: Lang.GetText("Menu", "Account_Information") %></legend>
                
                <div class="editor-label">
                    <%: Html.Label(Lang.GetText("Menu","User_name")) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.UserName) %>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.Label(Lang.GetText("Menu", "Email"))%>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.Email) %>
                    <%: Html.ValidationMessageFor(m => m.Email) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.Label(Lang.GetText("Menu", "Password"))%>
                </div>
                <div class="editor-field">
                    <%: Html.PasswordFor(m => m.Password) %>
                    <%: Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.Label(Lang.GetText("Menu", "Confirm"))%>
                </div>
                <div class="editor-field">
                    <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>

                <div class="editor-label">
                    <%: Html.CheckBoxFor(m => m.RequestSpecialist)%>
                    <p>Check this box if you would like to request Specialist´s rights.</p>
                    <p>Specialist rights will allow you to respond pending questions</p>
                    <p>through your profile which user have posted.</p>
                    <p>A request will be send to our staff which will contact you for further aproval.</p>
                </div>
                
                <p>
                    <input type="submit" value="<%: Lang.GetText("Menu", "Register") %>" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
